﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Globalization;

namespace IridiumFlares
{
    public class Flare : IridiumParser.IFlare
    {

        public Guid ID { get; set; }
        public Guid Location_Ref { get; set; }

        public DateTime Time { get; set; }
        public int Intensity { get; set; }
        public int Altitude { get; set; }
        public int Azimuth { get; set; }
        public int SatelliteNo { get; set; }

        #region Formatting
        public String Subject
        {
            get
            {
                return String.Format("Iridium Flare {0}", this.Time.ToShortTimeString());
            }
        }

        public String Body
        {
            get
            {
                return String.Format("Zeit: {0}, Azimuth: {1}°, Altitude: {2}°, Magnitude: {3}",
                this.Time.ToShortTimeString(), this.Azimuth, this.Altitude, this.Intensity);
            }
        }
        #endregion
    }
}
